﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(firstProjectMetadata))]//使用firstProjectMetadata对firstProject进行数据验证
    public partial class firstProject : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        #endregion

    }
    public class firstProjectMetadata
    {
			[ScaffoldColumn(false)]
			[Display(Name = "ID", Order = 1)]
			public object ID { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "一级项目名称", Order = 2)]
			[StringLength(100, ErrorMessage = "长度不可超过100")]
			public object projectName { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "立项日期", Order = 3)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			[DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]

			public DateTime? projectDate { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "部门", Order = 4)]
			[StringLength(100, ErrorMessage = "长度不可超过100")]
			public object department { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "经费负责人", Order = 5)]
			[StringLength(36, ErrorMessage = "长度不可超过36")]
			public object chargeMan { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "经费来源", Order = 6)]
			[StringLength(100, ErrorMessage = "长度不可超过100")]
			public object moneySource { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "总资金", Order = 7)]
			public object totalMoney { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "经费类别", Order = 8)]
			[StringLength(100, ErrorMessage = "长度不可超过100")]
			public object moneyType { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "创建日期", Order = 9)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			public DateTime? CreateTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "创建人", Order = 10)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object CreatePerson { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "编辑时间", Order = 11)]
			[DataType(System.ComponentModel.DataAnnotations.DataType.DateTime,ErrorMessage="时间格式不正确")]
			public DateTime? UpdateTime { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "编辑人", Order = 12)]
			[StringLength(200, ErrorMessage = "长度不可超过200")]
			public object UpdatePerson { get; set; }

			[ScaffoldColumn(true)]
			[Display(Name = "备注", Order = 13)]
			[StringLength(2000, ErrorMessage = "长度不可超过2000")]
			public object remark { get; set; }


    }


}

